var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');


var schema = new mongoose.Schema({
    title   : String,
    contents: String,
    cateId  : mongoose.Schema.ObjectId
});

schema.plugin(mongoosePaginate);

var News = mongoose.model('News',  schema);  // Model.paginate()

module.exports = News;